

import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';

Future<void> showMessageDialog({@required BuildContext context, String title, String content}){
  return showDialog(context: context, barrierDismissible: true, builder: (context) => AlertDialog(
    content: content != null ? Text(content) : null,
    title: title != null ? Text(title) : null,
    actions: <Widget>[
      FlatButton(
        child: Text("بىلدىم"),
        onPressed: (){
          Navigator.of(context).pop();
        },
      )
    ],
  ));
}